﻿using System;

namespace zijian666.DI;

internal class CrossServiceAccessor<T>
    where T : notnull
{
    public CrossServiceAccessor(IServiceProvider serviceProvider)
    {
        serviceProvider.Autowired(() => this);
    }
    [Autowired]
    public T Value { get; private set; }
}